﻿@model RonYee.Models.News

@{
    ViewBag.Title = "新闻编辑";
    Layout = "~/Views/Shared/_LayoutOfSecondPage.cshtml";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

 @using (Html.BeginForm())
 {
    @Html.ValidationSummary(true)
    <div class="box_padding">
        <h3><i class="ui-icons"></i>新闻编辑</h3>
        <div class="box_top ui-icons"></div>
        <div class="box_bg"><div class="box_padding">
        <div class="border_line">
            @Html.HiddenFor(model => model.NewsId)
            @Html.HiddenFor(model => model.ClickNum)
            <table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody>
            <tr>
                <td class="tdName">新闻标题:</td>
            </tr>
            <tr>
                <td class="tdData">
                   @Html.EditorFor(model => model.NewsTitle)
                   @Html.ValidationMessageFor(model => model.NewsTitle)
                </td>
            </tr>
            <tr>
                <td class="tdName">新闻内容：</td>
            </tr>
            <tr>
                <td class="tdData">
                   @Html.TextAreaFor(model => model.Contents)
                   @Html.ValidationMessageFor(model => model.Contents)
                </td>
            </tr>
            </tbody></table></div>
        </div></div>
        <div class="box_down ui-icons"></div>
    </div>
                
    <div class="line_top">
        <input class="Button1 ui-icons" title="保存新闻" value="保存" type="submit" />
    </div>
 }

 <script type="text/javascript">
     CKEDITOR.replace('Contents');
</script>

